<?php
namespace Kuoqi\Model;
use Kuoqi\Format;
use Kuoqi\Config;

/**
 * 服务模型基础
 * Class Service
 * @package Kuoqi\Model
 * User kuoqi
 * Datetime 2022/4/21 15:21
 * Remark
 */
class Service extends \Kuoqi\Model{

    /**
     * 是否为有效的表单,如果有数据则为true,没数据则外false
     * @var bool
     * User kuoqi
     * Datetime 2022/4/21 15:27
     * Remark
     */
    protected $is_valied = true;
    /**
     * 错误信息
     * @var string
     * User kuoqi
     * Datetime 2022/4/21 15:27
     * Remark
     */
    protected $errmsg = '';

    static function __initialize(){
        //self::$client = \kuoqi\database::__initialize();
        //return new self;
    }


    //对象初始化
    //version:1.00.00
    public function __construct($attrs = array()){

    }

    /**
     * 判定是否有数据
     * createby kuoqi at 2022/8/13 11:20
     * @return bool
     */
    public function isValied(){
        return $this->is_valied;
    }

    /**
     * 获取异常信息
     * createby kuoqi at 2022/8/13 11:20
     * @return string
     */
    public function getError(){return $this->errmsg;}

    /**
     * 设置异常内容
     * createby kuoqi at 2022/8/13 11:20
     * @param $err
     * @return mixed
     */
    public function setError($err){ return $this->errmsg = $err;}

}